package com.lib.okhttp.annotation;


import androidx.annotation.StringDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * 缓存类型
 *
 * @author zhousf
 */
@StringDef({
        CacheType.AUTO,
        CacheType.FORCE_NETWORK,
        CacheType.FORCE_CACHE})
@Retention(RetentionPolicy.SOURCE)
public @interface CacheType {
    /**
     * 自动识别
     */
    String AUTO = "AUTO";
    /**
     * 仅网络
     */
    String FORCE_NETWORK = "FORCE_NETWORK";
    /**
     * 仅缓存
     */
    String FORCE_CACHE = "FORCE_CACHE";
}